package com.example.base.aa.net

import com.example.base.aa.entity.AttendEntity
import com.example.base.aa.entity.CateEntity
import com.example.base.aa.entity.GoodsEntity
import com.example.base.aa.entity.Res
import retrofit2.http.GET
import retrofit2.http.Path
import retrofit2.http.Query

interface ApiService {

    @GET("/api/attendances/user/{userId}")
    suspend fun getAttend(@Path("userId")userId:Int):Res<AttendEntity>

    @GET("http://10.161.9.80:7456/api/front/category")
    suspend fun getCate():Res<CateEntity>

    @GET("http://10.161.9.80:7456/api/front/products")
    suspend fun getGoods(@Query("cid")cid:Int,@Query("limit")limit:Int,@Query("page")page:Int):Res<GoodsEntity>

}